package cn.wolfcode.domain;


import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import java.util.HashMap;

@Getter
@Setter
public class Classinfo {
    private Long id;

    private String name;

    private Integer number;

    private Long employee_id;

    private Employee emp;

    public String getJson(){
        HashMap map = new HashMap();
        map.put("id",id);
        map.put("name",name);
        map.put("number",number);
        map.put("employee_id",employee_id);
        return JSON.toJSONString(map);
    }

    private int demo;
}